# 导包
import requests

# 封装
def ihrmAuthorization():
    herderData = {"Content-Type":"application/json"}
    jsonData = {"mobile":"13800000002","password":"123456"}
    resp = requests.post(url='http://ihrm2-test.itheima.net/api/sys/login',
                        headers=herderData,
                        json=jsonData)

    return resp.json()['data']


if __name__ == '__main__':
    print(ihrmAuthorization())